require([
        "esri/map",
        'esri/SpatialReference',
        'esri/layers/GraphicsLayer',
        'esri/graphic',
        'esri/geometry/Point',
        'esri/symbols/SimpleMarkerSymbol',
        'esri/symbols/SimpleFillSymbol',
        'esri/symbols/SimpleLineSymbol',
        'esri/Color',
        'esri/geometry/Circle',
        'dojo/on',
        "jquery/jquery-1.11.1"
    ],
    function(
        Map, SpatialReference,GraphicsLayer ,Graphic,Point,SimpleMarkerSymbol,SimpleFillSymbol,SimpleLineSymbol,Color,Circle,
        on
    ) {
        var map = new Map("map", {
            basemap: "osm",  //For full list of pre-defined basemaps, navigate to http://arcg.is/1JVo6Wd
            center: [115.45, 37.75], // longitude, latitude
            zoom: 5
        });
        on(map,"load", function () {
            $.ajax({
                type: "GET",
                url: "package.json",
                dataType: "json",
                async: false,
                success: function (data) {
                    console.log(data);
                    var graphicsLayer = new GraphicsLayer();
                    map.addLayer(graphicsLayer);
                    for(var i= 0;i<data.length;i++){
                        //console.log(data[i]);
                        var point = new Point(data[i].LGTD,data[i].LTTD,map.spacialReference);
                        var graphic=new Graphic(point,new SimpleMarkerSymbol(
                            SimpleMarkerSymbol.STYLE_CIRCLE, 10,
                            new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID,
                                new Color([255,0,0]), 1),
                            new Color([0,255,0,0.25])),data[i]);
//                                    if(graphic.attributes.FRGRD!=map.getZoom()){
//                                        graphic.visible=false;
//                                    }
                        graphicsLayer.add(graphic);

                    }




                }
            })
        })
    })





/**
 * Created by Administrator on 2016/9/10.
 */
